﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include<vector>
#include<algorithm>
using namespace std;

class A
{
	public :
	// 构造函数explicit就不再⽀持隐式类型转换
	// explicit A(int a1)
	A(int a1)
		: _a1(a1)
	{}
	//explicit A(int a1, int a2)
	A(int a1, int a2)
		:_a1(a1)
		, _a2(a2)
	{}
	void Print()
	{
		cout << _a1 << " " << _a2 << endl;
	}
	int Get() const
	{
		return _a1 + _a2;
	}
private:
	int _a1 = 1;
	int _a2 = 2;
};

int main()
{
	A a = {1, 2};
	A* a2 = new A(1, 2);
	return 0;
}